<h1>Listing people</h1>

<table>
  <tr>
    <th>First contact</th>
    <th>School</th>
    <th>Name</th>
    <th>Parent name</th>
    <th>Case manager</th>
    <th>Victimization type</th>
    <th>Primary crime</th>
    <th>All crimes involved</th>
    <th>Is parent?</th>
    <th>Met with cm?</th>
    <th>Number of children</th>
    <th>Followup provided?</th>
    <th>Age</th>
    <th>Gender</th>
    <th>Ethnic group</th>
    <th>Relationship to perp</th>
    <th>Underserved population</th>
  </tr>
  
<% for person in @people %>
  <tr>
    <td><%=h person.first_contact %></td>
    <td><%=h person.school %></td>
    <td><%=h person.name %></td>
    <td><%=h person.parent_name %></td>
    <td><%=h person.case_manager %></td>
    <td><%=h person.victimization_type %></td>
    <td><%=h person.primary_crime %></td>
    <td><%=h person.all_crimes_involved %></td>
    <td><%=h person.is_parent? %></td>
    <td><%=h person.met_with_cm? %></td>
    <td><%=h person.number_of_children %></td>
    <td><%=h person.followup_provided? %></td>
    <td><%=h person.age %></td>
    <td><%=h person.gender %></td>
    <td><%=h person.ethnic_group %></td>
    <td><%=h person.relationship_to_perp %></td>
    <td><%=h person.underserved_population %></td>
    <td><%= link_to 'Show', person_path(person) %></td>
    <td><%= link_to 'Edit', edit_person_path(person) %></td>
    <td><%= link_to 'Destroy', person_path(person), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New person', new_person_path %>
